import demo.TestMain;

/**
 * @description:
 * @author: WangPengPeng
 * @create: 2022-01-09 10:53
 **/
public class ParentA {
    static {
        System.out.println("1");
    }
    public ParentA() {
        System.out.println("2");
    }
}

class SonB extends ParentA {
    static {
        System.out.println("a");
    }

    public SonB() {
        // super();
        System.out.println("b");
    }

    public static void main(String[] args) {
        ParentA ab = new SonB();  // 1 a 2 b
        System.out.println();// 2 b
        ab = new SonB();
        new TestMain();
    }

}